package com.infore.siteManagement.entity;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * The persistent class for the STATIONTYPE database table.
 * llf
 * 站点类型
 */
@Entity
@Table(name = "STATION_TYPE")
@NamedQuery(name="StationType.findAll", query="SELECT s FROM StationType s")
public class StationType implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="STATION_TYPE_ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String stationTypeId;

	/** 最新修改时间**/
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") 
	@Column(name="LAST_UPDATE_TIME")
	private Date lastUpdateTime;

	/** 备注**/
	@Column(name = "REMARK")
	private String remark;

	/** 类型编号**/
	@Column(name="STATION_TYPE_CODE")
	private String stationTypeCode;

	/** 站点类型名称**/
	@Column(name="STATION_TYPE_NAME")
	private String stationTypeName;

	public StationType() {
	}

	public String getStationTypeId() {
		return this.stationTypeId;
	}

	public void setStationTypeId(String stationTypeId) {
		this.stationTypeId = stationTypeId;
	}

	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStationTypeCode() {
		return this.stationTypeCode;
	}

	public void setStationTypeCode(String stationTypeCode) {
		this.stationTypeCode = stationTypeCode;
	}

	public String getStationTypeName() {
		return this.stationTypeName;
	}

	public void setStationTypeName(String stationTypeName) {
		this.stationTypeName = stationTypeName;
	}

}